#ifndef GROUPSESSIONDETAILDIALOG_H
#define GROUPSESSIONDETAILDIALOG_H

#include <QDialog>
#include <QVBoxLayout>
#include "Style.h"

///////////////////////////////////////////
/// 点击会话右上角的...时弹出的画面
/// 此窗口为群聊显示的窗口
///////////////////////////////////////////
class GroupSessionDetailDialog : public QDialog
{
    Q_OBJECT
public:
    GroupSessionDetailDialog(QWidget* parent, const QIcon& icon, const QString& id, const QString& group_name);
    void add_item(const QIcon& icon, const QString& name);
private:
    const QString SCROLL_STYLE = get_scroll_area_style();
    QIcon        group_avatar;
    QString      group_id;
    QString      group_name;
    QVBoxLayout* v_layout;
    QGridLayout* g_layout_scroll;
    int          cur_row = 0; // 当前该添加第几行了
    int          cur_col = 1; // 当前该添加到第几列了
};

#endif                        // GROUPSESSIONDETAILDIALOG_H
